/*
 * Copyright 2008-2012 Centro Andaluz de Innovación y Tecnologías de la
 * Información y las Comunicaciones (CITIC). All Rights Reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
 *
 * Please contact CITIC - Edificio CITIC, C/ Marie Curie, 6 Parque
 * Tecnológico de Andalucía 29590 - Campanillas, Málaga, Spain
 * or visit www.citic.es, if you need additional information or
 * have any questions.
 */
package es.citic.puedes.youtube;


/**
 * class that extends from Exception. It shows the problems with the YouTube
 * authentication
 * 
 * 
 */
public class YouTubeAuthException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * message of the exception
	 */
	private String message;
	/**
	 * contains the cause of the exception
	 */
	private Throwable cause;
		
	/**
	 * creates an empty YouTubeAuthException
	 */
	public YouTubeAuthException() {
		this.message = null;
		this.cause = null;
	}

	/**
	 * creates a YouTubeAuthException with a message and a cause
	 * 
	 * @param message
	 *            message of the exception
	 * @param cause
	 *            contains the cause of the exception
	 */
	public YouTubeAuthException(String message, Throwable cause) {
		this.message = message;
		this.cause = cause;
	}

	/**
	 * creates a YouTubeAuthException with a message
	 * 
	 * @param message
	 *            message of the exception
	 */
	public YouTubeAuthException(String message) {
		this.message = message;

	}

	/**
	 * creates a YouTubeAuthException with a cause
	 * 
	 * @param cause
	 *            the cause of the exception
	 */
	public YouTubeAuthException(Throwable cause) {
		this.cause = cause;
	}

	/**
	 * gets the message of the exception
	 * 
	 * @return the message of the exception
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * gets the cause of the exception
	 * 
	 * @return the cause of the exception
	 */
	public Throwable getCause() {
		return cause;
	}

}
